#ifndef __OLED_PORT_H__
#define __OLED_PORT_H__

#include "stdio.h"
#include "stdint.h"

#define OLED_LOG (void)
#define OLED_DRIVER_SSD1306 0
#define OLED_DRIVER_SH1106  1
#define OLED_DRIVER_SSD1315 2
#define OLED_DRIVER     OLED_DRIVER_SSD1306
//对应要实现的接口函数
void OLED_Init(void); //初始化驱动
void OLED_SendBuff(uint8_t buff[8][128]); //将8*128字节的buff一次性全部发送的函数
// void OLED_PowerCtrl(uint8_t on1_off0);
void OLED_ColorTurn(uint8_t inverse);
void OLED_DisplayTurn(uint8_t inverse);

#if (OLED_DRIVER == OLED_DRIVER_SSD1306)
#define OLED_LOW_COLUMN_ADDR  0x00
#elif (OLED_DRIVER == OLED_DRIVER_SH1106)
#define OLED_LOW_COLUMN_ADDR  0x02
#endif

#endif

